package com.example.springfeature.springinitbean;

/**
 * Created with IDEA
 *
 * @author: 董文辉
 * Date: 2019/3/8
 * Time: 9:58
 */
public class XmlPhone {
    private String brandName ="华为";
    private Integer money = 1000;

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Phone{" +
                "brandName='" + brandName + '\'' +
                ", money=" + money +
                '}';
    }

    public void init(){
        System.out.println("XmlPhone 创建完成");
    }
}
